package com.example.transaction.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Setter
@Getter
@TableName("chat")
public class Chat implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "chatID", type = IdType.AUTO)
    private Integer chatID;

    @TableField(value = "userID")
    private Integer userID;

    @TableField(value = "targetUserID")
    private Integer targetUserID;

    @TableField(value = "userName")
    private String userName;

    @TableField(value = "targetUserName")
    private String targetUserName;

    @TableField(value = "createTime")
    private LocalDateTime createTime;

    @TableField(value = "content")
    private String content;

    @TableField(value = "deleted")
    private Integer deleted;
}
